package edu.yzu.testspringboot002.po;


import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import jakarta.validation.constraints.NotBlank;
import lombok.Getter;
import lombok.Setter;


import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 日程安排
 * </p>
 *
 * @author yulang
 * @since 2023-09-05
 */
@Getter
@Setter
@ApiModel(value = "DailySchedule对象", description = "日程安排")
public class DailySchedule implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键id")
    private Integer id;

    private Integer doctorId;

    @ApiModelProperty("日期 2023-09-05")
    @NotBlank(message = "时间不能为空")
    private String dateDaily;

    @ApiModelProperty("开始时段 08:00")
    @NotBlank(message = "开始时段不能为空")
    private String startRange;

    @ApiModelProperty("结束时段 09：00")
    @NotBlank(message = "结束时段不能为空")
    private String endRange;

    @ApiModelProperty("创建时间")
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    private LocalDateTime createTime;

    @ApiModelProperty("会议名称")
    @NotBlank(message = "会议名称不能为空")
    private String mettingName;

    @ApiModelProperty("会议主题")
    @NotBlank(message = "会议主题不能为空")
    private String mettingSubject;

    @ApiModelProperty("参会医生人员")
    private String doctorIds;

    private List<String> doctorIdList;

    @ApiModelProperty("患者人员")
    private String patinetIds;
    private List<String> patinetIdList;


    private String mettingTime;

    @ApiModelProperty("活动类型 0：'图文会诊' 1：'视频会诊' 2：'腾讯会议' ")
    private Integer activityType;

    /**
     * 腾讯会议分享地址
     */
    private String mettingUrl;
    /**
     * 腾讯会议号
     */
    private String meetingNo;
    /**
     * 腾讯会议密码
     */
    private String meetingPwd;

    // 参与单位
    private Integer deptNum;
    // 实际参与单位
    private Integer inNum;
}
